package com.nengchuan.eic.nceconomy.fegin;

import com.eic.psm.sdk.entity.CoreSection;
import com.eic.psm.sdk.vo.CoreSectionDepartInfoVo;
import com.nengchuan.eic.nceconomy.config.FeignConfiguration;
import com.nsc.boot.common.msg.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 功能描述:
 *
 * @Author: liurui
 * @Date: 2020/5/18 0018 下午 4:07
 */
@FeignClient(value = "eic-ppa-service",path = "/ppa",configuration = FeignConfiguration.class)
public interface PpaFeignService {

    @GetMapping("/foreign/getCoreSectionByIndivdualProjectId")
    @ApiOperation("根据单项工程id获取标段信息")
    Result<List<CoreSection>> getCoreSectionByIndivdualProjectId(@RequestParam("projectId") Long var1);

    @GetMapping("/foreign/getCoreSectionDepartInfoByIndivdualProjectId")
    @ApiOperation("根据单项工程获取标段项目部人员信息")
    Result<List<CoreSectionDepartInfoVo>> getCoreSectionDepartInfoByIndivdualProjectId(@RequestParam("indivdualProjectId") Long var1);

}
